<?php
/* @var $this ExpensesController */
/* @var $model Expense */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'expense-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'SRFNo'); ?>
		<?php echo $form->textField($model,'SRFNo',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'SRFNo'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'CustomerId'); ?>
		<?php echo $form->textField($model,'CustomerId',array('size'=>19,'maxlength'=>19)); ?>
		<?php echo $form->error($model,'CustomerId'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'CategoryId'); ?>
		<?php echo $form->textField($model,'CategoryId',array('size'=>19,'maxlength'=>19)); ?>
		<?php echo $form->error($model,'CategoryId'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Receipt'); ?>
		<?php echo $form->textArea($model,'Receipt',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'Receipt'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ExpenseType'); ?>
		<?php echo $form->textField($model,'ExpenseType'); ?>
		<?php echo $form->error($model,'ExpenseType'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Date'); ?>
		<?php echo $form->textField($model,'Date'); ?>
		<?php echo $form->error($model,'Date'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Billable'); ?>
		<?php echo $form->checkBox($model,'Billable'); ?>
		<?php echo $form->error($model,'Billable'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'O_Night'); ?>
		<?php echo $form->checkBox($model,'O_Night'); ?>
		<?php echo $form->error($model,'O_Night'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ItemDescription'); ?>
		<?php echo $form->textArea($model,'ItemDescription',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'ItemDescription'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Total'); ?>
		<?php echo $form->textField($model,'Total'); ?>
		<?php echo $form->error($model,'Total'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Comment'); ?>
		<?php echo $form->textArea($model,'Comment',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'Comment'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'From'); ?>
		<?php echo $form->textField($model,'From',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'From'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'To'); ?>
		<?php echo $form->textField($model,'To',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'To'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Distance'); ?>
		<?php echo $form->textField($model,'Distance'); ?>
		<?php echo $form->error($model,'Distance'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Hour'); ?>
		<?php echo $form->textField($model,'Hour'); ?>
		<?php echo $form->error($model,'Hour'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'AtPerHour'); ?>
		<?php echo $form->textField($model,'AtPerHour'); ?>
		<?php echo $form->error($model,'AtPerHour'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'CreateAt'); ?>
		<?php echo $form->textField($model,'CreateAt'); ?>
		<?php echo $form->error($model,'CreateAt'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'UpdateAt'); ?>
		<?php echo $form->textField($model,'UpdateAt'); ?>
		<?php echo $form->error($model,'UpdateAt'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Enabled'); ?>
		<?php echo $form->checkBox($model,'Enabled'); ?>
		<?php echo $form->error($model,'Enabled'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'UserId'); ?>
		<?php echo $form->textField($model,'UserId',array('size'=>19,'maxlength'=>19)); ?>
		<?php echo $form->error($model,'UserId'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ExchangeRate'); ?>
		<?php echo $form->textField($model,'ExchangeRate'); ?>
		<?php echo $form->error($model,'ExchangeRate'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'DeleteFlg'); ?>
		<?php echo $form->checkBox($model,'DeleteFlg'); ?>
		<?php echo $form->error($model,'DeleteFlg'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'CurrencyId'); ?>
		<?php echo $form->textField($model,'CurrencyId'); ?>
		<?php echo $form->error($model,'CurrencyId'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->